<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <style type="text/css">
        @import "css/login.css";
    </style>
   <script src="./js/login.js" type="text/javascript" language="JavaScript"></script>
</head>
<body>
<!--    背景图片-->
    <div id="bg">
        <img src="./imgs/reg_bg.jpg" style="width: 100%;height: 100%">
    </div>
    <div id="login">
        <table  width="260" class="tab">
            <form method="post" action="./checkuser.php" onsubmit="return check()">
                <tr><td >&nbsp;</td></tr>
                <tr>
                    <td colspan="2"><h1 style="text-align: center">登录</h1></td>
                </tr>
                <tr><td>&nbsp;</td></tr>
                <tr>
                    <td style="width: 60px">用户名：</td>
                    <td>
                        <input type="text" class="txt" placeholder="用户名"
                               name="username" id="name">
                    </td>
                </tr>
                <tr>
                    <td style="width: 60px">密&nbsp;码：</td>
                    <td>
                        <input type="password" class="txt" placeholder="密码"
                               name="password" id="psw">
                    </td>
                </tr>
                <tr>
                    <td style="width: 60px">验证码：</td>
                    <td>
                        <input type="text" size="6" placeholder="验证码"
                               name="Yz" id="yan">
                        <input type="button" id="code" value="" onclick="createNewCode()">
                    </td>
                    <td id="tu"></td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input type="submit" value="登录" name="Submit" id="submit">
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <a href="#">忘记密码？</a>
                    </td>
                </tr>
            </form>
        </table>
        <div id="foot_bar">
            <p id="sao" onclick="rec()">扫一扫登录</p>
            <a href="./register.php" id="a2">没有账号？立即注册</a>
            <div id="img" onclick="rec()"></div>
        </div>
    </div>
</body>
</html>